# -------------------------------------------- # HEWLETT·PACKARD 15C Simulator program # Created with version 3.0.07 # -------------------------------------------- #T:Countdown #D:Author: Eddie Shore, November 2011\n\nMake a program that has the calculator count down from N to 1. \n\nInstructions:\n1. Enter N.\n2. Press [ f ] [ e^x ] (B) to run label B.\n\nNote: The calculator is set to integer mode (Fix 0). You may need to change the mode back after using this program.\n\nIf you own a HP 15C Limited Edition: Replace PSE with R/S, because the pause does not work (unfortunately). #L-2:Main Routine #L0:Loop #R0:Counter # -------------------------------------------- 000 { } 001 { 42 21 12 } f LBL B 002 { 42 7 0 } f FIX 0 003 { 43 44 } g INT 004 { 44 0 } STO 0 005 { 42 21 0 } f LBL 0 006 { 45 0 } RCL 0 007 { 42 31 } f PSE 008 { 42 5 0 } f DSE 0 009 { 22 0 } GTO 0 010 { 45 0 } RCL 0 011 { 43 32 } g RTN # --------------------------------------------